package ejb.facades.extra;

import entities.User;
import entities.extra.UserTripParticipation;
import java.util.List;
import javax.ejb.Local;

/**
 * Trabalho PD - 2014/2015
 * @author a21210380 a21210392
 */
@Local
public interface UserTripParticipationFacadeLocal {

    void create(UserTripParticipation userTripParticipation);

    void edit(UserTripParticipation userTripParticipation);

    void remove(UserTripParticipation userTripParticipation);

    UserTripParticipation find(Object id);

    List<UserTripParticipation> findAll();
    
    List<UserTripParticipation> findAppointedTripFor(User user);
    
    List<UserTripParticipation> findTripHistoricFor(User user);

    List<UserTripParticipation> findRange(int[] range);

    int count();

}
